/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package RMI;

import Modelo.Hospede;
import Modelo.Hotel;
import Modelo.Quarto;
import Modelo.Reserva;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 *
 * @author kassio
 */
public interface ServicosIF extends Remote{
    
    //hospede
    public boolean addHospede(Hospede h) throws RemoteException;
    public boolean removeHospede(Hospede h) throws RemoteException;
    public boolean editHospede(Hospede h) throws RemoteException;
    public Hospede findHospede(int id) throws RemoteException;
    public List<Hospede> getHospedes() throws RemoteException;
    
    //hotel
    public boolean addHotel(Hotel h) throws RemoteException;
    public boolean removeHotel(Hotel h) throws RemoteException;
    public boolean editHotel(Hotel h) throws RemoteException;
    public Hotel findHotel(int id) throws RemoteException;
    public List<Hotel> getHoteis() throws RemoteException;

    //reserva
    public int addReserva(Reserva r) throws RemoteException;
    public int removeReserva(Reserva r) throws RemoteException;
    public int editReserva(Reserva r) throws RemoteException;
    public Reserva findReserva(int id) throws RemoteException;
    public List<Reserva> getReservas() throws RemoteException;
    
    //quarto 
    public int addQuarto(Quarto q) throws RemoteException; 
    public int removeQuarto(Quarto q) throws RemoteException;
    public int editQuarto(Quarto q) throws RemoteException;
    public Quarto findQuarto(int id) throws RemoteException; 
    public List<Quarto> findAll() throws RemoteException; 
    
    public void helloworld() throws RemoteException;
}
